﻿using System;
using System.IO;

namespace LibraryGuard
{
	/// <summary>
	/// Class with predefined ActionList converters.
	/// </summary>
	public static class Comparers
	{
		/// <summary>
		/// Compares two FileSystemInfos by their FullName.
		/// </summary>
		public static readonly Comparison<object> FSI = (a, b) => ((FileSystemInfo)a).FullName.CompareTo(((FileSystemInfo)b).FullName);

		/// <summary>
		/// Compares FileSystemInfo.FullName with string.
		/// </summary>
		public static readonly Comparison<object> FSIString = (a, b) => ((FileSystemInfo)a).FullName.CompareTo((string)b);
	}
}
